package org.makabaka.wfwwb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.makabaka.wfwwb.pojo.ProblemSelection;

import java.util.List;

@Mapper
public interface ProblemSelectionMapper extends BaseMapper<ProblemSelection> {
    // 根据团队 ID 查询选题信息
    @Select("SELECT * FROM problem_selection WHERE team_id = #{teamId}")
    List<ProblemSelection> selectByTeamId(Integer teamId);

    @Select("SELECT track_type FROM problem_selection WHERE team_id = #{teamId}")
    String getTrackTypeByTeamId(Integer teamId);
}
